package com.hong.qrpc.utils;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

/**
 * @Author HQT
 * @Date 2022/7/16 19:20
 */
public class FileUtils {
    public static String getProjectPath() {
        try {
            return URLDecoder.decode(FileUtils.class.getResource("/").getPath(),"UTF-8");
        } catch (UnsupportedEncodingException e) {
            throw new IllegalArgumentException("parse string error");
        }
    }
}
